<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>玻璃效果</title>
    <style>
        * {
            margin: 0px;
            padding: 0px;
        }

        #masking-box {
            position: relative;
            width: 100%;
        }

        #masking-box>img {
            display: block;
            width: 100%;
        }

        #masking-out {
            position: absolute;
            top: 0;
            right: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(200, 200, 200, 0.5);
            backdrop-filter: blur(5px);
            transition: 5s;
        }

        #masking-box:hover #masking-out{
            width: 0px;
        }

    </style>
</head>

<body>
    <div id="masking-box">
        <img src="../resource/img/大桥.png">
        <div id="masking-out"></div>
    </div>
</body>

</html>